﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddNewFlow.aspx.cs" Inherits="admin_Flow_BackManage_AddNewFlow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="Stylesheet" type="text/css" href="../../Styles/right_style.css" />
    <script type="text/javascript" src="../../Scripts/jquery.ui/js/jquery.js"></script>
    <style type="text/css">
            <!--
            html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
            scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
            -->
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="sub_right_top">
        <div class="hdm_footer">
            <div style="height: 13px; overflow: hidden;">
            </div>
            <table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0"
                style="border-collapse: collapse;">
                <tr bgcolor="#b1d5ef">
                    <td colspan="2" align="center">
                        新建流程
                    </td>
                </tr>
                <tr>
                    <td>
                        流程分类：
                    </td>
                    <td>
                        <label>
                            <asp:DropDownList ID="ddlBase_Flow" runat="server" DataSourceID="FlowTypeDataSource"
                                DataTextField="Flow_name" DataValueField="Id" Font-Size="12px" 
                            Width="150px">
                            </asp:DropDownList>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        流程排序号：
                    </td>
                    <td>
                        <label>
                            <asp:TextBox ID="txtNew_Flow_Sort" runat="server" Width="150px"></asp:TextBox>控制同一分类下流程的排序<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNew_Flow_Sort"
                                Font-Bold="True" ErrorMessage="流程排序号不能为空！">*</asp:RequiredFieldValidator>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtNew_Flow_Sort"
                                Font-Bold="True" MinimumValue="0" Type="Integer" ErrorMessage="流程排序号必须是大于0的整数！">*</asp:RangeValidator>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        流程名称：
                    </td>
                    <td>
                        <label>
                            <asp:TextBox ID="txtNew_Flow_Name" runat="server" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNew_Flow_Name"
                                Font-Bold="True" ErrorMessage="流程名称不能为空！">*</asp:RequiredFieldValidator>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        流程类型：
                    </td>
                    <td>
                        <label>
                            <asp:DropDownList ID="ddlNew_Flow_Type" runat="server" Font-Size="12px" 
                            Width="150px">
                                <asp:ListItem Value="1">固定流程</asp:ListItem>
                                <asp:ListItem Value="2">自由流程</asp:ListItem>
                            </asp:DropDownList>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        表单：
                    </td>
                    <td>
                        <label>
                            <asp:DropDownList ID="ddl_Form" runat="server" DataSourceID="FlowFormDataSource"
                                DataTextField="Form_name" DataValueField="Id" Font-Size="12px" 
                            Width="150px">
                            </asp:DropDownList>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td width="100">
                        允许附件：
                    </td>
                    <td>
                        <label>
                            <asp:DropDownList ID="ddlAllow_AffixFile" runat="server" Font-Size="12px" 
                            Width="150px">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:DropDownList>
                        </label>
                    </td>
                </tr>
                <tr bgcolor="#b1d5ef">
                    <td colspan="2">
                        <div class="disk_queding_top">
                            <asp:Button ID="btnSave" runat="server" Text="" OnClick="btnSave_Click" CssClass="queding_anniu" />
                        </div>
                        <div class="disk_back_top">
                            <asp:Button ID="btnBack" runat="server" Text="" CssClass="fanhui_anniu" PostBackUrl="~/admin/Flow_BackManage/Flow_NewFlowList.aspx"
                                CausesValidation="False" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Bold="True" /></td>
                </tr>
            </table>
            <div style="height: 15px; overflow: hidden;">
            </div>
        </div>
    </div>
    <asp:ObjectDataSource ID="FlowTypeDataSource" runat="server" SelectMethod="FindAllTypes"
        TypeName="TarreOA.TarreOABLL.Flow_Type_Service"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="FlowFormDataSource" runat="server" SelectMethod="FindAllForms"
        TypeName="TarreOA.TarreOABLL.Flow_Forms_Service"></asp:ObjectDataSource>
    </form>
</body>
</html>
